Skip to content

Commit

Permalink
fixes #121
Browse files Browse the repository at this point in the history
  • Loading branch information
wloczynutka committed Aug 21, 2015
1 parent 6477348 commit 16987f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powerTrail/powerTrailBase.php
Expand Up @@ -487,7 +487,7 @@ public static function cleanGeoPaths() {
* check if real cache count in pt is equal stored in db.
*/
private static function checkCacheCountInPt($pt){
$countQuery = 'SELECT count(*) as `cacheCount` FROM `caches` WHERE `cache_id` IN (SELECT `cacheId` FROM `powerTrail_caches` WHERE `PowerTrailId` =:1) AND `status` IN ( 1, 2, 4, 5 )';
$countQuery = 'SELECT count(*) as `cacheCount` FROM `caches` WHERE `cache_id` IN (SELECT `cacheId` FROM `powerTrail_caches` WHERE `PowerTrailId` =:1)';
$db = \lib\Database\DataBaseSingleton::Instance();
$db->multiVariableQuery($countQuery, $pt['id']);
$answer = $db->dbResultFetch();
Expand Down

0 comments on commit 16987f8

Please sign in to comment.