Skip to content

Commit 5cd9198

Browse files
author
Samuel Leathers
committed
add mvc subrepo
1 parent 688e28b commit 5cd9198

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

models/BaseModel.class.inc

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ class BaseModel {
1010
if(isset($this->data[$var])) {
1111
return $this->data[$var];
1212
}
13-
return $this->$var;
13+
if(isset($this->$var)) {
14+
return $this->$var;
15+
}
1416
}
1517
public function __set($var,$value) {
1618
$this->data[$var] = $value;

0 commit comments

Comments
 (0)