Commit 183fc1af346c507760d21ede7d9b2f9a748bafa7

Authored by Myriam Bouchemit
1 parent a9cf38ab

getTimeTablesCatalogsList

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
php/WebServices/WebServer.php
... ... @@ -126,13 +126,14 @@ class WebServer
126 126 $sharedObjMgr = new SharedObjectsMgr();
127 127 if (!@$dom->load($sharedObjMgr->getTreeFilePath()))
128 128 $this->throwError("workspaceError", "Workspace Error : Cannot load Shared TimeTable list");
  129 + $tagName = $object == "timetables" ? "timeTableList" : "catalogList";
129 130 }
130 131 else {
131 132 if (!@$dom->load(USERWSDIR.'Tt.xml'))
132 133 $this->throwError("workspaceError", "Workspace Error : Cannot load TimeTable list for ".$this->userID);
  134 + $tagName = $object == "timetables" ? "timetabList" : "catalogList";
133 135 }
134 136  
135   - $tagName = $object == "timetables" ? "timetabList" : "catalogList";
136 137 $timetabNode = $dom->getElementsByTagName($tagName);
137 138  
138 139 if ($timetabNode->length < 1){
... ...