Shorter syntax use && for and use || for or

This commit is contained in:
Lucas committed 2013-10-29 13:20:27 +01:00
1 parent 8ee51fa8a2
commit 882b5cf3c7
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -123,7 +123,7 @@ class HtmlBuilder {
{
$url = $this->url->to($url, array(), $secure);
if (is_null($title) or $title === false) $title = $url;
if (is_null($title) || $title === false) $title = $url;
return '<a href="'.$url.'"'.$this->attributes($attributes).'>'.$this->entities($title).'</a>';
}