change pexecute tp pexecute_first in phpinterface-classes

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-11-06 10:52:20 +01:00
parent 94a5edc1eb
commit 8a9ed3d9f1
3 changed files with 3 additions and 6 deletions

View File

@@ -97,8 +97,7 @@ class phpinterface {
$stmt = Database::prepare("
SELECT * FROM `" . TABLE_PANEL_PHPCONFIGS . "` WHERE `id` = :id"
);
Database::pexecute($stmt, array('id' => $php_config_id));
$this->_php_configs_cache[$php_config_id] = $stmt->fetch(PDO::FETCH_ASSOC);
$this->_php_configs_cache[$php_config_id] = Database::pexecute_first($stmt, array('id' => $php_config_id));
}
return $this->_php_configs_cache[$php_config_id];