| @@ -214,9 +214,9 @@ | ||
| 214 | 214 | private function hasSiteWithOutdatedDatabase(): bool |
| 215 | 215 | { |
| 216 | 216 | foreach ($this->getActivePluginSites() as $siteId) { |
| 217 | 217 | $table = $this->database->getBlogPrefix($siteId) . 'options'; |
| 218 | - $select = "SELECT option_value FROM $table WHERE option_name = '%s' LIMIT 1"; | |
| 218 | + $select = "SELECT `option_value` FROM `$table` WHERE `option_name` = '%s' LIMIT 1"; | |
| 219 | 219 | $select = $this->database->prepare($select, 'uam_db_version'); |
| 220 | 220 | $currentDbVersion = $this->database->getVariable($select); |
| 221 | 221 | |
| 222 | 222 | if ($currentDbVersion !== null |