Browse Source

Prevent side effect with cascade => false in dba::delete

pull/4896/head
Hypolite Petovan 3 years ago
parent
commit
ba3f721524
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/dba.php

+ 1
- 1
include/dba.php View File

@ -894,7 +894,7 @@ class dba {
}
// Is there a relation entry for the table?
if (isset(self::$relation[$table])) {
if ($cascade && isset(self::$relation[$table])) {
// We only allow a simple "one field" relation.
$field = array_keys(self::$relation[$table])[0];
$rel_def = array_values(self::$relation[$table])[0];


Loading…
Cancel
Save