Unified · Split
| @@ -134,4 +134,4 @@ class app.models.Doc extends app.Model · 133 unmodified lines | ||
| 134 | 134 | return |
| 135 | 135 | |
| 136 | 136 | isOutdated: (status) -> |
| 137 | − status.installed and @mtime isnt status.mtime | |
| 137 | + status and status.installed and @mtime isnt status.mtime | |
| @@ -58,7 +58,7 @@ app.templates.offlineDoc = (doc, status) -> · 57 unmodified lines | ||
| 58 | 58 | <td class="_docs-size">#{Math.ceil(doc.db_size / 100000) / 10} MB</td> |
| 59 | 59 | """ |
| 60 | 60 | |
| 61 | − html += if !status.installed | |
| 61 | + html += if !(status and status.installed) | |
| 62 | 62 | """ |
| 63 | 63 | <td>-</td> |
| 64 | 64 | <td><a data-action="install">Install</a></td> |