[Tilesathome] Bug in tile2.php DeleteRealTile?

Martijn van Oosterhout kleptog at gmail.com
Wed Jun 6 11:33:29 BST 2007


On 6/6/07, Francisco R. Santos <frsantos at gmail.com> wrote:
> Hi all
>
> browsing the source code of tile2.php, I encountered the following code
> (lines 220-222):
>
> $SQL = sprintf ( "DELETE FROM `tiles_meta` WHERE `x`=%d AND `y`=%d AND
> `z`=%d AND `type`=%d;", $X ,$Y,$X,$LayerID);
>
> I may be wrong, as I don't know the code, but I think the parameters to the
> query should be $X, $Y, $Z, $LayerID, that is, replace the second $X by a $Z

Wow, that explains a lot. Please fix!

Have a nice day,
-- 
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/




More information about the Tilesathome mailing list