projects
/
infodrom
/
hallinta
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57a8586
)
Only inspect result data if existent
author
Joey Schulze
<joey@infodrom.org>
Fri, 23 Mar 2012 20:12:41 +0000
(21:12 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Fri, 23 Mar 2012 20:12:41 +0000
(21:12 +0100)
lib/functions.js
patch
|
blob
|
history
diff --git
a/lib/functions.js
b/lib/functions.js
index
68dfe6b
..
69680f8
100644
(file)
--- a/
lib/functions.js
+++ b/
lib/functions.js
@@
-6,7
+6,7
@@
function ajax_request_callback(req)
if (req.readyState == 4 && req.status == 200) {
var data = json_parse(req.responseText);
- if (typeof data.error == 'string') {
+ if (
data &&
typeof data.error == 'string') {
if (typeof data.errormsg == 'string')
error(data.errormsg);
else