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/Utilities.inc.php

    r816 r817  
    253253    $app =& App::getInstance();
    254254
    255     if ('' == $text) {
     255    if ('' === $text) {
    256256        return '';
    257257    }
     
    999999            // If the prefix is empty, use the $key as the name of the first dimension of the "array".
    10001000            // ...otherwise, append the key as a new dimension of the "array".
    1001             $new_prefix = ('' == $prefix) ? urlencode($key) : $prefix . '[' . urlencode($key) . ']';
     1001            $new_prefix = ('' === $prefix) ? urlencode($key) : $prefix . '[' . urlencode($key) . ']';
    10021002            // Enter recursion.
    10031003            urlEncodeArray($val, $new_prefix, false);
     
    13901390    $app =& App::getInstance();
    13911391
    1392     if ('' == trim($val)) {
     1392    if ('' === trim($val)) {
    13931393        $app->logMsg(sprintf('Cannot add signature to an empty string.', null), LOG_INFO, __FILE__, __LINE__);
    13941394        return '';
     
    14391439    // Strip the value from the signed value.
    14401440    $val = removeSignature($signed_val);
    1441     if ('' == $val) {
     1441    if ('' === $val) {
    14421442        // Removing the signature failed because it was empty or did not contain a hyphen.
    14431443        $app->logMsg(sprintf('Invalid signature ("%s" is not a valid signed value).', $signed_val), LOG_DEBUG, __FILE__, __LINE__);
     
    15931593function ipInRange($addr, $networks)
    15941594{
    1595     if (null == $addr || '' == trim($addr)) {
     1595    if (null == $addr || '' === trim($addr)) {
    15961596        return false;
    15971597    }
Note: See TracChangeset for help on using the changeset viewer.