[pLog-svn] r1003 - plog/trunk/class/logger/logger

ork at devel.plogworld.net ork at devel.plogworld.net
Tue Feb 8 15:13:22 GMT 2005


Author: ork
Date: 2005-02-08 15:13:21 +0000 (Tue, 08 Feb 2005)
New Revision: 1003

Modified:
   plog/trunk/class/logger/logger/loggedmessage.class.php
Log:
even though php.net promises to set the 'args' index, it might happen
that there is no args index. again, short if block.. .


Modified: plog/trunk/class/logger/logger/loggedmessage.class.php
===================================================================
--- plog/trunk/class/logger/logger/loggedmessage.class.php	2005-02-08 15:08:59 UTC (rev 1002)
+++ plog/trunk/class/logger/logger/loggedmessage.class.php	2005-02-08 15:13:21 UTC (rev 1003)
@@ -117,7 +117,11 @@
 				$this->file = basename( $this->fullFileName );
 				$this->line = $callerInfo["line"];
 				$this->class = $callerInfo["class"];
-				$this->args = $this->_getParametersString( $callerInfo["args"] );
+                if( isset($callerInfo["args"]) ) {
+                    $this->args = $this->_getParametersString( $callerInfo["args"] );
+                } else {
+                    $this->args = NULL;
+                }
 				$this->function = $callerInfo["function"];
 			}
 			else {
@@ -132,4 +136,4 @@
 			return true;
 		}
     }
-?>
\ No newline at end of file
+?>




More information about the pLog-svn mailing list