Wrong exit on database error in CUser::updateProfile

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Minor
    • None
    • Affects Version/s: 1.8.5
    • Component/s: API (A), Frontend (F)
    • None
    • Environment:
      Debian Lenny

      When there's an error with DB fields in method CUser::updateProfile, the application tries to 'break' but it's not inside a loop, causing the following error:

      PHP Fatal error: Cannot break/continue 1 level in .../api/classes/class.cuser.php on line 759

      Besides this error in the log file, the user doesn't receive any feedback in the web front-end.

      I attach a small patch to fix the problem, which can be applied with:

      patch -p1 < 0001-Correct-wrong-error-check-in-CUser-updateProfile.patch

            Assignee:
            Unassigned
            Reporter:
            Jacobo Aragunde Pérez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: