diff --git a/lib/helpers.php b/lib/helpers.php index 401890470..520c464e2 100755 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -46,8 +46,7 @@ function database() */ function prepare($parameter) { - if (!empty($parameter)) - return database()->prepare($parameter); + return database()->prepare($parameter); } /** diff --git a/src/Database.php b/src/Database.php index 2a453e4c5..5cf7bb805 100755 --- a/src/Database.php +++ b/src/Database.php @@ -390,9 +390,7 @@ class Database extends Util\Singleton */ public function prepare($parameter) { - if (!empty($parameter)) - return $this->getPDO()->quote($parameter); - + return $this->getPDO()->quote($parameter); } /**