- let's get rid of that `Database::exists()` is being misused for checking table existence
- reformatted array
// Ensure to only modify attachments that you own
$srch = '<' . intval($contact_id) . '>';
- $condition = ['allow_cid' => $srch, 'allow_gid' => '', 'deny_cid' => '', 'deny_gid' => '',
- 'id' => $attach];
+ $condition = [
+ 'allow_cid' => $srch,
+ 'allow_gid' => '',
+ 'deny_cid' => '',
+ 'deny_gid' => '',
+ 'id' => $attach,
+ ];
if (!Attach::exists($condition)) {
continue;
}
*
* @return boolean Are there rows for that condition?
* @throws \Exception
+ * @todo Get rid of the DBStructure::existsTable() invocation
*/
public function exists(string $table, array $condition): bool
{