Indentation and undefined variable fix in Block.php

This commit is contained in:
Albert Santoni 2015-01-27 15:39:21 -05:00
parent 0ba5452e03
commit 2b323400fc
1 changed files with 17 additions and 14 deletions

View File

@ -1517,24 +1517,27 @@ SQL;
$i++; $i++;
} }
} }
// check if file exists // check if file exists
$qry->add("file_exists", "true", Criteria::EQUAL); $qry->add("file_exists", "true", Criteria::EQUAL);
$qry->add("hidden", "false", Criteria::EQUAL); $qry->add("hidden", "false", Criteria::EQUAL);
if (isset($storedCrit['sort'])) { $sortTracks = 'random';
$sortTracks = $storedCrit['sort']['value']; if (isset($storedCrit['sort'])) {
} $sortTracks = $storedCrit['sort']['value'];
if ($sortTracks == 'newest') { }
$qry->addDescendingOrderByColumn('utime'); if ($sortTracks == 'newest') {
} $qry->addDescendingOrderByColumn('utime');
else if ($sortTracks == 'oldest') { }
$qry->addAscendingOrderByColumn('utime'); else if ($sortTracks == 'oldest') {
} $qry->addAscendingOrderByColumn('utime');
else { }
$qry->addAscendingOrderByColumn('random()'); else if ($sortTracks == 'random') {
} $qry->addAscendingOrderByColumn('random()');
} else {
Logging::warning("Unimplemented sortTracks type in ".__FILE__);
}
} }
// construct limit restriction // construct limit restriction
$limits = array(); $limits = array();