I have a php bot (on IRC), and since I updated my php and mysql to the last version on CentOS I've come across with this error
unset($ops_activos);
unset($voices_activos);
if ($on_pthelp == 1) {
if ($ops["#pthelp"]['count'] > 0) {
foreach ($ops["#pthelp"] as $value) {
if (!is_int($value)) {
if (isset($ops_activos)) {
$ops_activos .= " " . $value;
} else {
$ops_activos = $value;
}
}
}
if ($bot_debug) {
scmd("PRIVMSG ". $log_chan ." :[Membros (Mode)] [OPS]: ". $ops_activos);
}
}
unset ($value);
if ($voices["#pthelp"]['count'] > 0) {
foreach ($voices["#pthelp"] as $value) {
if (!is_int($value)) {
if (isset($voices_activos)) {
$voices_activos .= " " . $value;
} else {
$voices_activos = $value;
}
}
}
if ($bot_debug) {
scmd("PRIVMSG ". $log_chan ." :[Membros (Mode)] [VOICES]: ". $voices_activos);
}
}
Line with error
if ($ops["#pthelp"]['count'] > 0) {