Changeset 2172


Ignore:
Timestamp:
Sep 19, 2012, 3:25:22 PM (7 years ago)
Author:
matthijs
Message:

luci-wizard: Fix a Facebook-related crash.

Before, when you did not go through the Facebook authentication process,
but did click "next" (instead of "skip") in the wizard, the wizard would
error out with a lua error.

This bug was introduced in r2080.

Closes: #1217

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/luci/libs/uploadd/luasrc/fon/facebook.lua

    r2083 r2172  
    164164        -- big, causing lua's default string conversion to use
    165165        -- scientific notation...
    166         return data.session_key, data.secret, data.expires, string.format("%.0f", data.uid)
     166        return data.session_key, data.secret, data.expires, data.uid and string.format("%.0f", data.uid) or nil
    167167end
    168168
Note: See TracChangeset for help on using the changeset viewer.