registration: Improve duplicate config setting exception
[lhc/web/wiklou.git] / maintenance / populateInterwiki.php
index 6c812bf..1b05e1e 100644 (file)
@@ -56,7 +56,7 @@ TEXT
        }
 
        public function execute() {
-               $force = $this->getOption( 'force', false );
+               $force = $this->hasOption( 'force' );
                $this->source = $this->getOption( 'source', 'https://en.wikipedia.org/w/api.php' );
 
                $data = $this->fetchLinks();
@@ -129,7 +129,7 @@ TEXT
                                __METHOD__
                        );
 
-                       if ( ! $row ) {
+                       if ( !$row ) {
                                $dbw->insert(
                                        'interwiki',
                                        [