• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Use of undefined constant nil - assumed 'nil'

Hitman94

Member
Joined
Feb 9, 2009
Messages
88
Solutions
1
Reaction score
12
Hey i have on my acc gesior this error
Sytem-linux debian 8 - php7.2

Warning: Use of undefined constant nil - assumed 'nil' (this will throw an Error in a future version of PHP) in /var/www/html/layouts/tibiacom/layout.php on line 512


PHP:
<?php
    $casts = $SQL->query("SELECT COUNT(*) AS 'cast' FROM `live_casts`")->fetch();
    $cast = $casts["cast"];
    $specs = $SQL->query("SELECT SUM(`spectators`) AS 'spec' FROM `live_casts`")->fetch();
    $spec = $specs["spec"];
    if($spec === nil)
        $spec = 0;
?>

Line 512
PHP:
if($spec === nil)


I do not understand this function completely



thank you in advance for your help
 
Back
Top