Upgrade to be able to run on PHp7
This commit is contained in:
parent
b9e04c6ca3
commit
4265af9338
5 changed files with 29 additions and 28 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue