FML Update 1.4
This commit is contained in:
@ -34,7 +34,7 @@ class Including implements Renderable {
|
||||
* @param string $url (optional) Include url
|
||||
*/
|
||||
public function __construct($url = null) {
|
||||
if (!is_null($url)) {
|
||||
if ($url !== null) {
|
||||
$this->setUrl($url);
|
||||
}
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ class Music implements Renderable {
|
||||
* @param string $data (optional) Media url
|
||||
*/
|
||||
public function __construct($data = null) {
|
||||
if (!is_null($data)) {
|
||||
if ($data !== null) {
|
||||
$this->setData($data);
|
||||
}
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ class SimpleScript implements Renderable {
|
||||
* @param string $text (optional) Script text
|
||||
*/
|
||||
public function __construct($text = null) {
|
||||
if (!is_null($text)) {
|
||||
if ($text !== null) {
|
||||
$this->setText($text);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user