mirror of
https://github.com/friendica/friendica
synced 2025-04-27 19:50:12 +00:00
Rename DBA::num_rows to DBA::numRows
This commit is contained in:
parent
1f2c0b98b5
commit
415b982d39
7 changed files with 19 additions and 19 deletions
|
@ -666,7 +666,7 @@ class DBA
|
|||
if (is_bool($stmt)) {
|
||||
$retval = $stmt;
|
||||
} else {
|
||||
$retval = (self::num_rows($stmt) > 0);
|
||||
$retval = (self::numRows($stmt) > 0);
|
||||
}
|
||||
|
||||
self::close($stmt);
|
||||
|
@ -732,7 +732,7 @@ class DBA
|
|||
* @param PDOStatement|mysqli_result|mysqli_stmt Statement object
|
||||
* @return int Number of rows
|
||||
*/
|
||||
public static function num_rows($stmt) {
|
||||
public static function numRows($stmt) {
|
||||
if (!is_object($stmt)) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ class DBM
|
|||
}
|
||||
|
||||
if (is_object($array)) {
|
||||
return DBA::num_rows($array) > 0;
|
||||
return DBA::numRows($array) > 0;
|
||||
}
|
||||
|
||||
return (is_array($array) && (count($array) > 0));
|
||||
|
|
|
@ -706,7 +706,7 @@ class DBStructure
|
|||
if (is_bool($stmt)) {
|
||||
$retval = $stmt;
|
||||
} else {
|
||||
$retval = (DBA::num_rows($stmt) > 0);
|
||||
$retval = (DBA::numRows($stmt) > 0);
|
||||
}
|
||||
|
||||
DBA::close($stmt);
|
||||
|
@ -741,7 +741,7 @@ class DBStructure
|
|||
if (is_bool($stmt)) {
|
||||
$retval = $stmt;
|
||||
} else {
|
||||
$retval = (DBA::num_rows($stmt) > 0);
|
||||
$retval = (DBA::numRows($stmt) > 0);
|
||||
}
|
||||
|
||||
DBA::close($stmt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue