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
Line 512
I do not understand this function completely
thank you in advance for your help
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