Code Duplication    Length = 13-13 lines in 2 locations

class/bbcvols.class.php 1 location

@@ 245-257 (lines=13) @@
242
            dol_syslog(__METHOD__ . ' ' . join(',', $this->errors), LOG_ERR);
243
        }
244
245
        if (!$error) {
246
            $this->id = $this->db->last_insert_id(MAIN_DB_PREFIX . $this->table_element);
247
248
            if (!$notrigger) {
249
                // Uncomment this and change MYOBJECT to your own tag if you
250
                // want this action to call a trigger.
251
252
                //// Call triggers
253
                //$result=$this->call_trigger('MYOBJECT_CREATE',$user);
254
                //if ($result < 0) $error++;
255
                //// End call triggers
256
            }
257
        }
258
259
        // Commit or rollback
260
        if ($error) {

class/bbctypes.class.php 1 location

@@ 147-159 (lines=13) @@
144
			dol_syslog(__METHOD__ . ' ' . join(',', $this->errors), LOG_ERR);
145
		}
146
147
		if (!$error) {
148
			$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX . $this->table_element);
149
150
			if (!$notrigger) {
151
				// Uncomment this and change MYOBJECT to your own tag if you
152
				// want this action to call a trigger.
153
154
				//// Call triggers
155
				//$result=$this->call_trigger('MYOBJECT_CREATE',$user);
156
				//if ($result < 0) $error++;
157
				//// End call triggers
158
			}
159
		}
160
161
		// Commit or rollback
162
		if ($error) {