Changeset 817 for trunk/lib/Utilities.inc.php
- Timestamp:
- Aug 20, 2024 4:21:17 AM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Utilities.inc.php
r816 r817 253 253 $app =& App::getInstance(); 254 254 255 if ('' == $text) {255 if ('' === $text) { 256 256 return ''; 257 257 } … … 999 999 // If the prefix is empty, use the $key as the name of the first dimension of the "array". 1000 1000 // ...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) . ']'; 1002 1002 // Enter recursion. 1003 1003 urlEncodeArray($val, $new_prefix, false); … … 1390 1390 $app =& App::getInstance(); 1391 1391 1392 if ('' == trim($val)) {1392 if ('' === trim($val)) { 1393 1393 $app->logMsg(sprintf('Cannot add signature to an empty string.', null), LOG_INFO, __FILE__, __LINE__); 1394 1394 return ''; … … 1439 1439 // Strip the value from the signed value. 1440 1440 $val = removeSignature($signed_val); 1441 if ('' == $val) {1441 if ('' === $val) { 1442 1442 // Removing the signature failed because it was empty or did not contain a hyphen. 1443 1443 $app->logMsg(sprintf('Invalid signature ("%s" is not a valid signed value).', $signed_val), LOG_DEBUG, __FILE__, __LINE__); … … 1593 1593 function ipInRange($addr, $networks) 1594 1594 { 1595 if (null == $addr || '' == trim($addr)) {1595 if (null == $addr || '' === trim($addr)) { 1596 1596 return false; 1597 1597 }
Note: See TracChangeset
for help on using the changeset viewer.