X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdba.php;h=2b3f9060fd6fe13d49a3032e20156b216bd12ad4;hb=0649d2c3934f5b9548bea32e2d17aa830104162d;hp=9e168eac799c36e6a53eefdd8ab68e9e99313405;hpb=dc3d2d598820d7a8682f55dd0d84a8f6ecabaaa1;p=friendica.git diff --git a/include/dba.php b/include/dba.php index 9e168eac79..2b3f9060fd 100644 --- a/include/dba.php +++ b/include/dba.php @@ -1,23 +1,43 @@ . + * + */ 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; }