Skip to content

Part 5 Error.... Need your help please  #1

Description

@eddietohier

Undefined variable: affected

APPPATH/Libraries/Crud_core.php at line 398

391 $insertedFilesAffectedRows = false;
392 if ($filesData) {
393 foreach ($filesData as $fileDataKey => $fileDataOptions) {
394 $insertedFilesAffectedRows = $this->filesHandler($fileDataKey, $fileDataOptions);
395 }
396 }
397
398 if ($insertedFilesAffectedRows || $affected || $toDelete || $toInsert)
399 $this->flash('success', 'Successfully Updated');
400 else
401 $this->flash('warning', 'The record was not updated or no changes were made');
402
403 return ['redirect' => $this->base . '/' . $this->table . '/edit/' . $this->id];
404 } else {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions