Alexander Nicolaysen Sørnes : screenshots.php: Prevent use of unitialized variable
Module: appdb Branch: master Commit: e58d239b999b8526a7ccca181f00201f50c3fe91 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=e58d239b999b8526a7ccca181... Author: Alexander Nicolaysen Sørnes <alexsornes(a)gmail.com> Date: Sat Jan 11 17:51:04 2014 +0100 screenshots.php: Prevent use of unitialized variable --- screenshots.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/screenshots.php b/screenshots.php index d8ae285..160eefe 100644 --- a/screenshots.php +++ b/screenshots.php @@ -68,6 +68,8 @@ if($hResult && query_num_rows($hResult)) // display thumbnails $c = 1; + + $iCurrentVersionId = 0; // optimization so we don't have to perform as many database queries // only update this variable when $iCurrentVersionId changes
participants (1)
-
Alexander Nicolaysen Sørnes