in setup screen.
Reported by Madriix in https://github.com/unrealircd/unrealircd-webpanel/issues/26
/* Now atomically rename the file */
if (!rename($tmpfile, $cfg_filename))
die("Could not write (rename) to file ".$cfg_filename."<br>");
- opcache_invalidate($cfg_filename);
+ if (function_exists('opcache_invalidate'))
+ opcache_invalidate($cfg_filename);
/* Do not re-read config, as it would reinitialize config
* without having the DB settings read. (And it also
/* Now atomically rename the file */
if (!rename($tmpfile, $db_filename))
die("Could not write (rename) to file ".$db_filename."<br>");
- opcache_invalidate($db_filename);
+ if (function_exists('opcache_invalidate'))
+ opcache_invalidate($db_filename);
}
public static function user_create(&$u)