fixing undefined variable $result - should be $query I assume
This commit is contained in:
parent
01cecc9522
commit
408b2cba58
|
@ -66,7 +66,7 @@ class OC_Migration_Content{
|
||||||
|
|
||||||
// Die if we have an error (error means: bad query, not 0 results!)
|
// Die if we have an error (error means: bad query, not 0 results!)
|
||||||
if( PEAR::isError( $query ) ) {
|
if( PEAR::isError( $query ) ) {
|
||||||
$entry = 'DB Error: "'.$result->getMessage().'"<br />';
|
$entry = 'DB Error: "'.$query->getMessage().'"<br />';
|
||||||
$entry .= 'Offending command was: '.$query.'<br />';
|
$entry .= 'Offending command was: '.$query.'<br />';
|
||||||
OC_Log::write( 'migration', $entry, OC_Log::FATAL );
|
OC_Log::write( 'migration', $entry, OC_Log::FATAL );
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue