]> git.mxchange.org Git - friendica.git/blobdiff - include/dbm.php
Merge pull request #3605 from annando/better-endless-scroll
[friendica.git] / include / dbm.php
index 34cbcad3a237f18e0eb69affd7a77f47a97eb553..bda62f34c2c1d6539bb2c757c7344deec16bfa87 100644 (file)
@@ -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);
        }
 }
-?>