Skip to content

Commit

Permalink
fix #49: check existance of xpath field before querying
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bigga committed Apr 24, 2015
1 parent 8cf6ded commit c2e2666
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dlf/class.ext_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ protected function getMetadataConfig() {

$uids = array ();

// check if tx_dlf_metadata.xpath exists anyhow
$fieldsInDatabase = $GLOBALS['TYPO3_DB']->admin_get_fields('tx_dlf_metadata');

if (! in_array('xpath', array_keys($fieldsInDatabase))) {

return $uids;

}

// Get all records with outdated configuration.
$result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'tx_dlf_metadata.uid AS uid',
Expand Down

0 comments on commit c2e2666

Please sign in to comment.