Fixed content language issue for search robots
authorMarcel Werk <burntime@woltlab.com>
Mon, 29 Apr 2013 13:05:51 +0000 (15:05 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 29 Apr 2013 13:05:51 +0000 (15:05 +0200)
wcfsetup/install/files/lib/data/user/User.class.php

index fe8daac145b16d8a92b07201c56e726f3857134d..d3b38435c3ee3535dc5576218ee189c369c49a2a 100644 (file)
@@ -215,7 +215,7 @@ final class User extends DatabaseObject implements IRESTfulResponse, IRouteContr
                                        $this->languageIDs = unserialize($data[$this->userID]);
                                }
                        }
-                       else {
+                       else if (!WCF::getSession()->spiderID) {
                                $this->languageIDs[] = WCF::getLanguage()->languageID;
                        }
                }