svn: /web/doc-editor/trunk/php/ AccountManager.php
[email protected] (Philip Olson)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
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