X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdbm.php;h=bda62f34c2c1d6539bb2c757c7344deec16bfa87;hb=390e34d587ef5bd09759ce63e7e64518398b2018;hp=34cbcad3a237f18e0eb69affd7a77f47a97eb553;hpb=63b0b0544557563dfb1ac7d4626bacdc33c7bc97;p=friendica.git diff --git a/include/dbm.php b/include/dbm.php index 34cbcad3a2..bda62f34c2 100644 --- a/include/dbm.php +++ b/include/dbm.php @@ -2,6 +2,7 @@ /** * @brief This class contain functions for the database management * + * This class contains functions that doesn't need to know if pdo, mysqli or whatever is used. */ class dbm { /** @@ -75,7 +76,7 @@ class dbm { if (is_bool($value)) { $value = ($value ? 'true' : 'false'); - } elseif (is_float($value) OR is_integer($value)) { + } elseif (is_float($value) || is_integer($value)) { $value = (string)$value; } else { $value = "'".dbesc($value)."'"; @@ -109,4 +110,3 @@ class dbm { return date('Y-m-d H:i:s', $timestamp); } } -?>