functions: fix some phpstorm-reported warnings

This commit is contained in:
Andrew Dolgov 2015-07-12 14:07:38 +03:00
parent 39d488a256
commit 83ce77a2e8
1 changed files with 4 additions and 1 deletions

View File

@ -447,6 +447,8 @@
$check_top_id = isset($params["check_top_id"]) ? $params["check_top_id"] : false; $check_top_id = isset($params["check_top_id"]) ? $params["check_top_id"] : false;
$ext_tables_part = ""; $ext_tables_part = "";
$query_strategy_part = "";
$search_words = array(); $search_words = array();
if ($search) { if ($search) {
@ -1194,7 +1196,7 @@
$_SESSION["hasMp3"])) { $_SESSION["hasMp3"])) {
$entry .= "<audio preload=\"none\" controls> $entry .= "<audio preload=\"none\" controls>
<source type=\"$ctype\" src=\"$url\"></source> <source type=\"$ctype\" src=\"$url\"/>
</audio>"; </audio>";
} else { } else {
@ -1619,6 +1621,7 @@
return __("no tags"); return __("no tags");
} else { } else {
$maxtags = min(5, count($tags)); $maxtags = min(5, count($tags));
$tags_str = "";
for ($i = 0; $i < $maxtags; $i++) { for ($i = 0; $i < $maxtags; $i++) {
$tags_str .= "<a class=\"tag\" href=\"#\" onclick=\"viewfeed('".$tags[$i]."')\">" . $tags[$i] . "</a>, "; $tags_str .= "<a class=\"tag\" href=\"#\" onclick=\"viewfeed('".$tags[$i]."')\">" . $tags[$i] . "</a>, ";