Upgrade to be able to run on PHp7

This commit is contained in:
Jeena 2020-06-16 18:51:51 +02:00
parent b9e04c6ca3
commit 4265af9338
5 changed files with 29 additions and 28 deletions

View file

@ -14,7 +14,7 @@ class Page extends Katharsis_Model_Abstract
}
$sql = $this->_con->createStatement("SELECT id FROM page WHERE url = :url " . $activeTerm, array("url" => $url));
if($result = $this->_con->fetchOne($sql)){
return $result['id'];
}
@ -83,4 +83,4 @@ class Page extends Katharsis_Model_Abstract
$this->_con->run($sql);
}
}
?>
?>