svn: /web/doc-editor/trunk/php/ AccountManager.php
| From: | Philip Olson | Date: | Sun, 03 Jul 2011 00:35:53 +0000 |
| Subject: | svn: /web/doc-editor/trunk/php/ AccountManager.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-2088@lists.php.net to get a copy of this message | ||
philip Sun, 03 Jul 2011 00:35:53 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312830
Log:
Fixed fatal empty property error. Added a @todo.
Changed paths:
U web/doc-editor/trunk/php/AccountManager.php
Modified: web/doc-editor/trunk/php/AccountManager.php
===================================================================
--- web/doc-editor/trunk/php/AccountManager.php 2011-07-03 00:19:14 UTC (rev 312829)
+++ web/doc-editor/trunk/php/AccountManager.php 2011-07-03 00:35:53 UTC (rev 312830)
@@ -454,6 +454,12 @@
if( $value == "true" ) {
$value = true;
}
+
+ // @todo determine why this is called when these are empty
+ if (empty($module) || empty($itemName)) {
+ return false;
+ }
+
$this->userConf->{$module}->{$itemName} = ( is_numeric($value) ) ? (int) $value :
$value;
// In session