Initialize variable before appending to it.

This commit is contained in:
Sei Lisa 2017-09-29 12:51:40 +02:00
parent d4359b133e
commit 6cee2ac634

View file

@ -190,6 +190,8 @@ else if(isset($_REQUEST['w'])){ // write to a record
} }
else if(isset($_REQUEST['q'])){ // read a record else if(isset($_REQUEST['q'])){ // read a record
$out = "";
$given_webkey = $_REQUEST['q']; $given_webkey = $_REQUEST['q'];
$sql = "SELECT * FROM $avpos_table" $sql = "SELECT * FROM $avpos_table"
. ' WHERE webkey = ' . StrSQL($given_webkey); . ' WHERE webkey = ' . StrSQL($given_webkey);