FML Update 1.4

This commit is contained in:
Steffen Schröder
2014-08-11 23:15:53 +02:00
parent 44cc71c328
commit 300d817409
50 changed files with 123 additions and 112 deletions

View File

@ -48,7 +48,7 @@ class CheckBoxDesign implements Styleable, SubStyleable {
* @param string $subStyle (optional) SubStyle name
*/
public function __construct($style, $subStyle = null) {
if (is_null($subStyle)) {
if ($subStyle === null) {
$this->setImageUrl($style);
} else {
$this->setStyle($style);
@ -116,7 +116,7 @@ class CheckBoxDesign implements Styleable, SubStyleable {
* @return string
*/
public function getDesignString($escaped = true, $addApostrophes = true) {
if (!is_null($this->url)) {
if ($this->url !== null) {
$string = $this->url;
} else {
$string = $this->style . '|' . $this->subStyle;;