mirror of
https://github.com/friendica/friendica
synced 2025-04-29 03:04:22 +02:00
Rename DBA::fetch_first to DBA::fetchFirst
This commit is contained in:
parent
591939dfc0
commit
f051ae1698
12 changed files with 18 additions and 18 deletions
|
@ -683,7 +683,7 @@ class DBA
|
|||
* @param string $sql SQL statement
|
||||
* @return array first row of query
|
||||
*/
|
||||
public static function fetch_first($sql) {
|
||||
public static function fetchFirst($sql) {
|
||||
$params = self::getParam(func_get_args());
|
||||
|
||||
$stmt = self::p($sql, $params);
|
||||
|
@ -1344,7 +1344,7 @@ class DBA
|
|||
|
||||
$sql = "SELECT COUNT(*) AS `count` FROM `".$table."`".$condition_string;
|
||||
|
||||
$row = self::fetch_first($sql, $condition);
|
||||
$row = self::fetchFirst($sql, $condition);
|
||||
|
||||
return $row['count'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue