From 9b14257d7dab4a405e1c1d3e2616027d7651616c Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 4 Jun 2013 01:00:52 -0400 Subject: [PATCH] Testing the return value of PDOStatement::Execute does not appear to work on MySQL. --- views/pdo_cache_backend.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/views/pdo_cache_backend.php b/views/pdo_cache_backend.php index da3f093..3ccb01c 100644 --- a/views/pdo_cache_backend.php +++ b/views/pdo_cache_backend.php @@ -70,9 +70,7 @@ class PDOCacheBackend implements CacheBackend public function GetTemplateDataForName($name, $modification_time) { - if (!$this->fetch_statement->Execute(array('name' => $name))) - return NULL; - + $this->fetch_statement->Execute(array('name' => $name)); $tpl = $this->fetch_statement->FetchObject(); if (!$tpl) return NULL; -- 2.22.5