From 1ff2bc4f3c694b7c76df8e57056c51ca39a23a34 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 20 Jan 2015 18:07:24 +0100 Subject: config module structure completed. Many other fixes. Hidden pw field support. --- inc/database.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'inc/database.inc.php') diff --git a/inc/database.inc.php b/inc/database.inc.php index 2c535d04..efc330fe 100644 --- a/inc/database.inc.php +++ b/inc/database.inc.php @@ -20,7 +20,7 @@ class Database */ public static function getExpectedSchemaVersion() { - return 8; + return 9; } public static function needSchemaUpdate() @@ -47,7 +47,8 @@ class Database /** * If you just need the first row of a query you can use this. - * Will return an associative array, or false if no row matches the query + * + * @return array|boolean Associative array representing row, or false if no row matches the query */ public static function queryFirst($query, $args = array(), $ignoreError = false) { @@ -64,6 +65,7 @@ class Database * * @param string $query Query to run * @param array $args Arguments to query + * @param boolean $ignoreError Ignore query errors and just return false * @return int|boolean Number of rows affected, or false on error */ public static function exec($query, $args = array(), $ignoreError = false) -- cgit v1.2.3-55-g7522