thexerteproject/xerteonlinetoolkits — pull request #87 by usernamenumber (2014-11-03 16:47:29+00:00)
Title: Fix for issue #83: code uses db result before it exists

See comment thread attached to #83 for details and style discussion. This is how I would do it, style-wise, but others may disagree.