X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdba.php;h=a90ec26fbb0001c31abe9cc4012adc4bda1cee74;hb=0a4119adaf6294bf43d135a0f435c1dd677c50e0;hp=9e168eac799c36e6a53eefdd8ab68e9e99313405;hpb=dc4b6ba55996ff2dee23f329502ff41a9d651962;p=friendica.git diff --git a/include/dba.php b/include/dba.php index 9e168eac79..a90ec26fbb 100644 --- a/include/dba.php +++ b/include/dba.php @@ -3,21 +3,22 @@ use Friendica\Database\DBA; /** - * @brief execute SQL query with printf style args - deprecated + * execute SQL query with printf style args - deprecated * * Please use the DBA:: functions instead: * DBA::select, DBA::exists, DBA::insert * DBA::delete, DBA::update, DBA::p, DBA::e * - * @param $args Query parameters (1 to N parameters of different types) + * @param $sql * @return array|bool Query array + * @throws Exception * @deprecated */ function q($sql) { $args = func_get_args(); unset($args[0]); - if (!DBA::$connected) { + if (!DBA::connected()) { return false; }