From 4833f73fd1a6f0d0fc901fe8394791e2a35f2970 Mon Sep 17 00:00:00 2001 From: Devin Smith Date: Mon, 2 Mar 2015 09:45:59 -0800 Subject: [PATCH] bind params --- include/library/Crunchbutton/Site.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/library/Crunchbutton/Site.php b/include/library/Crunchbutton/Site.php index 8d4ef4518..7f5542fa6 100644 --- a/include/library/Crunchbutton/Site.php +++ b/include/library/Crunchbutton/Site.php @@ -4,7 +4,7 @@ class Crunchbutton_Site extends Cana_Table { public function config($key = null) { if (!isset($this->_config)) { $global = Crunchbutton_Config::q('select * from config where id_site is null'); - $site = Crunchbutton_Config::q('select * from config where id_site="'.$this->id_site.'"'); + $site = Crunchbutton_Config::q('select * from config where id_site=?',[$this->id_site]); foreach ($global as $c) { $this->_config[$c->key] = $c;