fixed php notice after installation

This commit is contained in:
janxb 2016-07-25 16:56:43 +02:00
parent 5495e5b4bc
commit 21f76faba3

View File

@ -394,7 +394,8 @@ class dbPages extends dbJSON
$checksum = md5_file(PATH_PAGES.$key.DS.FILENAME);
// If checksum is different, update the post
if( $this->db[$key]['md5file']!==$checksum ) {
if( !isset($this->db[$key]['md5file']) ||
$this->db[$key]['md5file']!==$checksum ) {
// LOG
Log::set('CLI MODE - Different md5 checksum, key: '.$key);