fixing undefined variable $result - should be $query I assume

This commit is contained in:
Thomas Mueller 2013-01-06 23:45:12 +01:00
parent 01cecc9522
commit 408b2cba58
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class OC_Migration_Content{
// Die if we have an error (error means: bad query, not 0 results!)
if( PEAR::isError( $query ) ) {
$entry = 'DB Error: "'.$result->getMessage().'"<br />';
$entry = 'DB Error: "'.$query->getMessage().'"<br />';
$entry .= 'Offending command was: '.$query.'<br />';
OC_Log::write( 'migration', $entry, OC_Log::FATAL );
return false;