Comment 2 for bug 1081431

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/1883
Committed: http://gitorious.org/mahara/mahara/commit/12278823ae62a11928f79eaee7cde16016592818
Submitter: Melissa Draper (<email address hidden>)
Branch: 1.5_STABLE

commit 12278823ae62a11928f79eaee7cde16016592818
Author: Melissa Draper <email address hidden>
Date: Mon Oct 29 16:56:04 2012 +1300

    Fix the rss image exceptions preventing updating (Bug #1081431)

    Check the image data is a string (eg url) or array before
    proceeding, and set data to null if not.

    Serialising is the only way to check if a value can be unserialised
    so @ is suppressing the warnings thrown by non-unserialisable data.

    Prevent the issue happening in future installs, and fix current
    installs.

    Change-Id: I05c88f95e2f511e491bcbd5fa40d3c41949eff7f
    Signed-off-by: Melissa Draper <email address hidden>