Skip to content

Commit

Permalink
Fixing boolean check for stats (Issue #1270)
Browse files Browse the repository at this point in the history
eaf1a69 half fixed the issue with connection problems.

The check for $xml == false is always true, and so the stat_id and
stat_key returned by the tracker are never saved on the database. This
never lets new deployments get their stats started.
  • Loading branch information
Diogo Freire committed Oct 29, 2013
1 parent 303fc19 commit 9e8dd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/stats.php
Expand Up @@ -519,7 +519,7 @@ public function create_site( $sitename, $url)

$xml = simplexml_load_string(Stats_Model::_curl_req($stat_url));

if($xml == false)
if ($xml === false)
{
return false;
}
Expand Down

0 comments on commit 9e8dd03

Please sign in to comment.