X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdba.php;h=5f633afaaa65328f7087ede40faf130a4e06e637;hb=a7fac5a76fef1be6722e41c91ae3a6601a36110c;hp=9e168eac799c36e6a53eefdd8ab68e9e99313405;hpb=dc3d2d598820d7a8682f55dd0d84a8f6ecabaaa1;p=friendica.git diff --git a/include/dba.php b/include/dba.php index 9e168eac79..5f633afaaa 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; }