Ignore:
Timestamp:
Aug 20, 2024 4:21:17 AM (4 weeks ago)
Author:
anonymous
Message:

Minor fixes. Set default cache expiration to 900 seconds (15 minutes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Prefs.inc.php

    r784 r817  
    311311            return false;
    312312        }
    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__);
    315315            return false;
    316316        }
     
    529529
    530530        // User_id must not be empty.
    531         if ('' == $this->getParam('user_id')) {
     531        if ('' === $this->getParam('user_id')) {
    532532            $app->logMsg(sprintf('Cannot load prefs because user_id not set.', null), LOG_WARNING, __FILE__, __LINE__);
    533533            return false;
     
    603603
    604604        // User_id must not be empty.
    605         if ('' == $this->getParam('user_id')) {
     605        if ('' === $this->getParam('user_id')) {
    606606            $app->logMsg(sprintf('Cannot save prefs because user_id not set.', null), LOG_DEBUG, __FILE__, __LINE__);
    607607            return false;
Note: See TracChangeset for help on using the changeset viewer.