Skip to content

Commit

Permalink
[~]: "Logical operators should be avoided"
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Nov 25, 2014
1 parent b9a42a4 commit 701406d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"type": "library",
"homepage": "http://github.com/voku/php-hooks/",
"license": "GNU General Public License v3.0 only",
"license": "GPL-3.0",
"authors": [
{
"name": "Ohad Raz",
Expand Down
2 changes: 1 addition & 1 deletion src/voku/helper/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ public function shortcode_parse_atts($text)
$atts[strtolower($m[3])] = stripcslashes($m[4]);
} elseif (!empty($m[5])) {
$atts[strtolower($m[5])] = stripcslashes($m[6]);
} elseif (isset($m[7]) and strlen($m[7])) {
} elseif (isset($m[7]) && strlen($m[7])) {
$atts[] = stripcslashes($m[7]);
} elseif (isset($m[8])) {
$atts[] = stripcslashes($m[8]);
Expand Down

0 comments on commit 701406d

Please sign in to comment.