dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "block: Avoid use of empty() which doesn't warn on var non-existence"
[lhc/web/wiklou.git]
/
includes
/
block
/
BlockRestriction.php
diff --git
a/includes/block/BlockRestriction.php
b/includes/block/BlockRestriction.php
index
ca36cda
..
b92cda8
100644
(file)
--- a/
includes/block/BlockRestriction.php
+++ b/
includes/block/BlockRestriction.php
@@
-73,7
+73,7
@@
class BlockRestriction {
* @return bool
*/
public static function insert( array $restrictions ) {
- if (
empty( $restrictions )
) {
+ if (
!$restrictions
) {
return false;
}
@@
-85,7
+85,7
@@
class BlockRestriction {
$rows[] = $restriction->toRow();
}
- if (
empty( $rows )
) {
+ if (
!$rows
) {
return false;
}