]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Strict Standards: Declaration of MysqlSchema::get()
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 28 Jan 2016 19:18:06 +0000 (20:18 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 28 Jan 2016 19:18:06 +0000 (20:18 +0100)
should be compatible with Schema::get($conn = NULL)

lib/mysqlschema.php

index f1fc0f46ecd5c600fa12c4d4e128387288718ac1..9081c0e57807a479fbb1d20ff4c7edd6accdba83 100644 (file)
@@ -58,10 +58,10 @@ class MysqlSchema extends Schema
      * @return Schema the (single) Schema object
      */
 
-    static function get()
+    static function get($conn = null)
     {
         if (empty(self::$_single)) {
-            self::$_single = new Schema();
+            self::$_single = new Schema($conn);
         }
         return self::$_single;
     }