X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdba.php;h=154217a4c50a06049d82cb77e759ccb0365e4bb5;hb=eb7a86f9ad2d3767469ccb813dc7888fd94ceb95;hp=b1b689fdf77def7090d8b5bd54059e1fc9c1cd24;hpb=a526573075bf343db2f10799f4d6cd51d0bcd897;p=friendica.git diff --git a/include/dba.php b/include/dba.php index b1b689fdf7..154217a4c5 100644 --- a/include/dba.php +++ b/include/dba.php @@ -55,7 +55,7 @@ class dba { if ($install) { if (strlen($server) && ($server !== 'localhost') && ($server !== '127.0.0.1')) { if (! dns_get_record($server, DNS_A + DNS_CNAME + DNS_PTR)) { - self::$error = sprintf(t('Cannot locate DNS info for database server \'%s\''), $server); + self::$error = L10n::t('Cannot locate DNS info for database server \'%s\'', $server); self::$connected = false; self::$db = null; return false; @@ -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']; }