Skip to content
Snippets Groups Projects
Commit 587afae5 authored by chris's avatar chris
Browse files

infoutils update

minor modifications to avoid php warnings if msg file is missing.

darcs-hash:20060917153009-9b6ab-4b6ee49d728e89c3427130c617b532cd23c680bb.gz
parent 3d7760aa
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,8 @@ function checkUpdateMessages(){
// check if new messages needs to be fetched
if($lm < time()-(60*60*24) || $lm < @filemtime(DOKU_CONF.'msg')){
$num = file(DOKU_CONF.'msg');
$num = (int) $num[0];
$num = @file(DOKU_CONF.'msg');
$num = is_array($num) ? (int) $num[0] : 0;
$http = new DokuHTTPClient();
$http->timeout = 8;
$data = $http->get(DOKU_MESSAGEURL.$num);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment