Revision a8cee257
Added by Assos Assos almost 5 years ago
drupal7/sites/all/modules/file_entity/file_entity.admin.inc | ||
---|---|---|
362 | 362 |
$count_query = db_select('file_usage', 'fu') |
363 | 363 |
->fields('fu', array('fid', 'count')) |
364 | 364 |
->condition('fu.fid', $file_result->fid, '='); |
365 |
$count_query->addExpression('SUM(fu.count)', 'total_count');
|
|
365 |
$count_query->addExpression('fu.count', 'total_count');
|
|
366 | 366 |
$count_result = $count_query->execute()->fetchAll(); |
367 | 367 |
|
368 | 368 |
if (!empty($count_result[0]->total_count)) { |
Also available in: Unified diff
Weekly update of contrib modules