[pLog-svn] r888 - plog/trunk/class/locale

oscar at devel.plogworld.net oscar at devel.plogworld.net
Sun Jan 30 18:49:28 GMT 2005


Author: oscar
Date: 2005-01-30 18:49:26 +0000 (Sun, 30 Jan 2005)
New Revision: 888

Modified:
   plog/trunk/class/locale/locale.class.php
Log:
fixed according to this: http://www.plogworld.net/forums/viewtopic.php?t=1642

Modified: plog/trunk/class/locale/locale.class.php
===================================================================
--- plog/trunk/class/locale/locale.class.php	2005-01-30 18:28:06 UTC (rev 887)
+++ plog/trunk/class/locale/locale.class.php	2005-01-30 18:49:26 UTC (rev 888)
@@ -204,7 +204,7 @@
 				$this->_loadLocaleFile();
             }
 				
-            if( array_key_exists($id, $this->_messages) &&
+            if( is_array($this->_messages) && array_key_exists($id, $this->_messages) &&
                 $this->_messages[ $id ] != "" ) {
 			    $string = $this->_messages[ $id ];
             } else {




More information about the pLog-svn mailing list