1
0

Fixed broken code.

This commit is contained in:
Alexander Harkness 2014-10-01 20:14:28 +01:00
parent 12544a02dd
commit adab829d8f

View File

@ -34,9 +34,9 @@ function OnServerPing(ClientHandle, ServerDescription, OnlinePlayers, MaxPlayers
MaxPlayers = 0
-- Change favicon
if (cFile:IsFile("my-favicon.png")) then
if cFile:IsFile("my-favicon.png") then
local FaviconData = cFile:ReadWholeFile("my-favicon.png")
if (FaviconData != "") then
if FaviconData ~= "" and FaviconData ~= nil then
Favicon = Base64Encode(FaviconData)
end
end