Changeset 817 for trunk/lib/Prefs.inc.php
- Timestamp:
- Aug 20, 2024 4:21:17 AM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Prefs.inc.php
r784 r817 311 311 return false; 312 312 } 313 if ('' == trim($key)) {314 $app->logMsg(sprintf('Key is empty ( along with value:%s)', $val), LOG_NOTICE, __FILE__, __LINE__);313 if ('' === trim($key)) { 314 $app->logMsg(sprintf('Key is empty (val=%s)', $val), LOG_NOTICE, __FILE__, __LINE__); 315 315 return false; 316 316 } … … 529 529 530 530 // User_id must not be empty. 531 if ('' == $this->getParam('user_id')) {531 if ('' === $this->getParam('user_id')) { 532 532 $app->logMsg(sprintf('Cannot load prefs because user_id not set.', null), LOG_WARNING, __FILE__, __LINE__); 533 533 return false; … … 603 603 604 604 // User_id must not be empty. 605 if ('' == $this->getParam('user_id')) {605 if ('' === $this->getParam('user_id')) { 606 606 $app->logMsg(sprintf('Cannot save prefs because user_id not set.', null), LOG_DEBUG, __FILE__, __LINE__); 607 607 return false;
Note: See TracChangeset
for help on using the changeset viewer.