Skip to content

Commit

Permalink
Merge pull request #7184 from ewinslow/avoid-logical-operators
Browse files Browse the repository at this point in the history
chore(cleanup): Remove use of logical operator `and` in `output/url` view
  • Loading branch information
beck24 committed Aug 26, 2014
2 parents 8d6e14a + ad799dc commit cd87181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/default/output/url.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

$url = elgg_extract('href', $vars, null);
if (!$url and isset($vars['value'])) {
if (!$url && isset($vars['value'])) {
$url = trim($vars['value']);
unset($vars['value']);
}
Expand Down

0 comments on commit cd87181

Please sign in to comment.