Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-3923

Wrong exit on database error in CUser::updateProfile

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 1.8.5
    • API (A), Frontend (F)
    • None
    • 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

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

              Created:
              Updated:
              Resolved: