summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2016-01-27 10:55:14 +0100
committerJuuso Lapinlampi <wub@partyvan.eu>2016-01-27 11:10:11 +0100
commit5ac30eb86d2c5ac5b4e72651575600f46c2c8a01 (patch)
tree79406bace798c2348dfd27a0854c609720bd93e0 /static
parent156bc6f2344f5ba27d5c4f403d535c713df6bcbe (diff)
Fix undeclared vars in html_success() and text_success()
As explained by clsr: > <clsr> With default PHP settings, that'd print a warning, then treat > $result as if it was an empty string before appending. This bug was introduced in commit a92961f24072bc4c3881bf0e2f609562f3703471 and 1411bce1dc13bf6fea66b5899ba29d50d5c53bb0. Reported-by: clsr <clsr@clsr.net> Suggested-by: clsr <clsr@clsr.net>
Diffstat (limited to 'static')
-rwxr-xr-xstatic/classes/Response.class.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php
index 505ae90..27dbd74 100755
--- a/static/classes/Response.class.php
+++ b/static/classes/Response.class.php
@@ -130,6 +130,8 @@ class Response
private static function html_success($files)
{
+ $result = '';
+
foreach ($files as $file) {
$result .= '<a href="'.$file['url'].'">'.$file['url'].'</a><br>';
}
@@ -161,6 +163,8 @@ class Response
private static function text_success($files)
{
+ $result = '';
+
foreach ($files as $file) {
$result .= $file['url']."\n";
}