Skip to content

Commit

Permalink
Fix EZP-22660 : mtime generated empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Plopix committed Apr 17, 2014
1 parent 5e572a6 commit 7faa31a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,13 @@ public function _endCacheGeneration( $filePath, $generatingFilePath, $rename )
return false;
}
$generatingMetaData = mysqli_fetch_assoc( $res );

if ( empty( $generatingMetaData ) )
{
eZDebug::writeError("An error occured while ending cache generation, $generatingFilePath", $fname );
$this->_rollback( $fname );
return false;
}

// the original file does not exist: we move the generating file
$res = $this->_query( "SELECT * FROM " . $this->dbTable( $filePath ) . " WHERE name_hash = " . $this->_md5( $filePath ) . " FOR UPDATE", $fname, false );
Expand Down

0 comments on commit 7faa31a

Please sign in to comment.