Skip to content

Commit

Permalink
Merge pull request #32 from hananils/feature/2.7.0-compatibility
Browse files Browse the repository at this point in the history
Symphony 2.7 + PHP 7 compatibility
  • Loading branch information
brendo authored Jun 27, 2017
2 parents 04bbbdb + 9c5aba5 commit 6f5a814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function install(){
return true;
}

public function update($previousVersion){
public function update($previousVersion = false){
if(version_compare($previousVersion, '0.9.4', '<')) {
Symphony::Database()->query('ALTER TABLE `tbl_fields_metakeys` ADD `delete_empty_keys` INT(1) NOT NULL DEFAULT \'1\';');
// Get all the fields that are meta-keys:
Expand Down Expand Up @@ -74,4 +74,4 @@ public static function appendAssets() {
Administration::instance()->Page->addScriptToHead(URL . '/extensions/field_metakeys/assets/field_metakeys.publish.js', 100, false);
}
}
}
}

0 comments on commit 6f5a814

Please sign in to comment.