Indentation and undefined variable fix in Block.php
This commit is contained in:
parent
0ba5452e03
commit
2b323400fc
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue