diff options
author | robocoder <anthon.pang@gmail.com> | 2011-04-04 04:50:42 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2011-04-04 04:50:42 +0400 |
commit | ea3733b21e4fcae292f94e583e8d20fea599c079 (patch) | |
tree | 2c4ee6f899a9b2c182a97736c0ad6c63af762e54 /core | |
parent | f52308cbf264484d9f437244e0c9d9267b8f86ae (diff) |
fixes #2260 - thanks element
git-svn-id: http://dev.piwik.org/svn/trunk@4303 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core')
-rw-r--r-- | core/Option.php | 2 | ||||
-rw-r--r-- | core/Updater.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/Option.php b/core/Option.php index 39e12c98d3..c8fef3ee2f 100644 --- a/core/Option.php +++ b/core/Option.php @@ -90,7 +90,7 @@ class Piwik_Option */ public function delete($name, $value = null) { - $sql = 'DELETE FROM '. Piwik_Common::prefixTable('option') . ' WHERE option_name = ?'; + $sql = 'DELETE FROM `'. Piwik_Common::prefixTable('option') . '` WHERE option_name = ?'; $bind[] = $name; if(isset($value)) diff --git a/core/Updater.php b/core/Updater.php index 17670f3da0..92a504677f 100644 --- a/core/Updater.php +++ b/core/Updater.php @@ -122,7 +122,7 @@ class Piwik_Updater } } // unfortunately had to extract this query from the Piwik_Option class - $queries[] = 'UPDATE '.Piwik_Common::prefixTable('option').' + $queries[] = 'UPDATE `'.Piwik_Common::prefixTable('option').'` SET option_value = "' .$fileVersion.'" WHERE option_name = "'. $this->getNameInOptionTable($componentName).'";'; } |