* is_mobile evaluation is wrong here, since we're -1 or 0 if not / undetected; so...
[citadel.git] / webcit / subst.c
index ecfa4a70ceaba7ff43ccf763e57bb2d939271f75..31be4b4a8a016399b0b8da15ee98caf110367ce4 100644 (file)
@@ -1961,7 +1961,7 @@ const StrBuf *DoTemplate(const char *templatename, long len, StrBuf *Target, WCT
                TP = &LocalTP;
        }
 
-       if (WC->is_mobile) {
+       if (WC->is_mobile > 0) {
                Static = WirelessTemplateCache;
                StaticLocal = WirelessLocalTemplateCache;
        }