Skip to content

Commit

Permalink
Check if joined is set when instantiating User object
Browse files Browse the repository at this point in the history
  • Loading branch information
ginatrapani committed Sep 10, 2012
1 parent 58da53b commit cc26529
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/_lib/model/class.User.php
Expand Up @@ -177,7 +177,9 @@ public function __construct($val = false, $found_in = false) {
if (isset($val['last_post'])) {
$this->last_post = $val['last_post'];
}
$this->joined = $val['joined'];
if (isset($val['joined'])) {
$this->joined = $val['joined'];
}
$this->found_in = $found_in;

if (isset($val['avg_tweets_per_day'])) {
Expand Down

0 comments on commit cc26529

Please sign in to comment.