diff --git a/includes/FeedsConfigurable.inc b/includes/FeedsConfigurable.inc index f94d5c0e8d47bb42b0e973f24ca180f9699227b5..c152c7a9b583ddb888a4582d83e64aa5032e1e23 100644 --- a/includes/FeedsConfigurable.inc +++ b/includes/FeedsConfigurable.inc @@ -77,13 +77,16 @@ abstract class FeedsConfigurable { } /** - * Determine whether this object is persistent. I. e. it is defined either - * in code or in the database. + * Determine whether this object is persistent and enabled. I. e. it is + * defined either in code or in the database and it is enabled. */ public function existing() { if ($this->export_type == FEEDS_EXPORT_NONE) { throw new FeedsNotExistingException(t('Object is not persistent.')); } + if ($this->disabled) { + throw new FeedsNotExistingException(t('Object is disabled.')); + } return $this; }