CC-4415: Smart Block audio preview doesn't work

This commit is contained in:
Martin Konecny 2012-09-14 16:51:14 -04:00
parent da107f5120
commit 3ced92db7a
3 changed files with 33 additions and 15 deletions

View file

@ -93,10 +93,9 @@ class Application_Model_Preference
}
$result = $con->query($sql)->fetchColumn(0);
//$result = Application_Common_Database::prepareAndExecute($sql, $paramMap, 'column');
if ($result == 0)
if ($result == 0) {
return "";
else {
} else {
$sql = "SELECT valstr FROM cc_pref"
." WHERE keystr = '$key'";
/*." WHERE keystr = :key";