Index: trunk/extensions/SimpleSecurity/SimpleSecurity.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | if (!defined('MEDIAWIKI')) die('Not an entry point.'); |
23 | 23 | if (version_compare($wgVersion, '1.11.0') < 0) die('Sorry, this extension requires at least MediaWiki version 1.11.0'); |
24 | 24 | |
25 | | -define('SIMPLESECURITY_VERSION', '4.2.14, 2008-09-12'); |
| 25 | +define('SIMPLESECURITY_VERSION', '4.2.15, 2008-12-14'); |
26 | 26 | |
27 | 27 | # Global security settings |
28 | 28 | $wgSecurityMagicIf = "ifusercan"; # the name for doing a permission-based conditional |
— | — | @@ -273,7 +273,7 @@ |
274 | 274 | public function validateRow(&$row) { |
275 | 275 | global $wgUser; |
276 | 276 | $groups = $wgUser->getEffectiveGroups(); |
277 | | - if (in_array('sysop', $groups)) return; |
| 277 | + if (in_array('sysop', $groups) || empty($row->old_id)) return; |
278 | 278 | |
279 | 279 | # Obtain a title object from the old_id |
280 | 280 | $dbr =& wfGetDB(DB_SLAVE); |