Skip to content

Commit

Permalink
prevent warning from showing
Browse files Browse the repository at this point in the history
  • Loading branch information
illiphilli committed Jul 26, 2011
1 parent 35c5403 commit 6aebe40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/upgrades/version_tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ function needed($version) {
global $db;

// we'll run when versions are equal since we may be doing an iteration update
$ver = $db->selectObject('version','created_at=(select max(created_at) from '.DB_TABLE_PREFIX.'_version)');
return ($ver->version <= $version) ? true : false;
$ver = $db->selectObject('version','created_at=(select max(created_at) from '.DB_TABLE_PREFIX.'_version)');
return (@$ver->version <= $version) ? true : false;
}

/**
Expand Down

0 comments on commit 6aebe40

Please sign in to comment.