Minor fixes.

parent e9be41ef
......@@ -250,7 +250,7 @@ class DB
*
* @todo Find a better way, as json_* functions are very heavy
*
* @param array $entities
* @param array|null $entities
* @param mixed $default
*
* @return mixed
......@@ -269,7 +269,6 @@ class DB
return json_encode($json_entities);
}
/**
* Insert entry to telegram_update table
*
......@@ -994,7 +993,7 @@ class DB
$tokens[':text'] = '%' . strtolower($text) . '%';
}
if ($where) {
if (!empty($where)) {
$query .= ' WHERE ' . implode(' AND ', $where);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment