Merge "block: Avoid use of empty() which doesn't warn on var non-existence"
[lhc/web/wiklou.git] / includes / block / BlockRestriction.php
index c5ab16f..b92cda8 100644 (file)
@@ -91,12 +91,14 @@ class BlockRestriction {
 
                $dbw = wfGetDB( DB_MASTER );
 
-               return $dbw->insert(
+               $dbw->insert(
                        'ipblocks_restrictions',
                        $rows,
                        __METHOD__,
                        [ 'IGNORE' ]
                );
+
+               return true;
        }
 
        /**