Minor fixes.

parent e9be41ef
...@@ -250,8 +250,8 @@ class DB ...@@ -250,8 +250,8 @@ class DB
* *
* @todo Find a better way, as json_* functions are very heavy * @todo Find a better way, as json_* functions are very heavy
* *
* @param array $entities * @param array|null $entities
* @param mixed $default * @param mixed $default
* *
* @return mixed * @return mixed
*/ */
...@@ -269,7 +269,6 @@ class DB ...@@ -269,7 +269,6 @@ class DB
return json_encode($json_entities); return json_encode($json_entities);
} }
/** /**
* Insert entry to telegram_update table * Insert entry to telegram_update table
* *
...@@ -994,7 +993,7 @@ class DB ...@@ -994,7 +993,7 @@ class DB
$tokens[':text'] = '%' . strtolower($text) . '%'; $tokens[':text'] = '%' . strtolower($text) . '%';
} }
if ($where) { if (!empty($where)) {
$query .= ' WHERE ' . implode(' AND ', $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