mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 17:14:26 +02:00
Fix undefined variables PHP Notice
- $order_string in include/dba - $limit_string in include/dba - $search in mod/search - $lang_list in include/pgettext.php
This commit is contained in:
parent
ce411da958
commit
4cca8280b4
3 changed files with 5 additions and 3 deletions
|
@ -1145,6 +1145,7 @@ class dba {
|
|||
|
||||
$condition_string = self::buildCondition($condition);
|
||||
|
||||
$order_string = '';
|
||||
if (isset($params['order'])) {
|
||||
$order_string = " ORDER BY ";
|
||||
foreach ($params['order'] AS $fields => $order) {
|
||||
|
@ -1157,6 +1158,7 @@ class dba {
|
|||
$order_string = substr($order_string, 0, -2);
|
||||
}
|
||||
|
||||
$limit_string = '';
|
||||
if (isset($params['limit']) && is_int($params['limit'])) {
|
||||
$limit_string = " LIMIT " . $params['limit'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue