Subversion Repositories Applications.referentiel

Rev

Rev 57 | Rev 70 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 57 Rev 58
Line 148... Line 148...
148
	}
148
	}
Line 149... Line 149...
149
	
149
	
150
	protected function supprimerSlash($doc) {
150
	protected function supprimerSlash($doc) {
151
		if (is_string($doc)) {
151
		if (is_string($doc)) {
152
			$doc = stripslashes($doc);
152
			$doc = stripslashes($doc);
153
		} else if (is_array($doc)) {
-
 
154
			if (count($doc) > 0) {
153
		} else if (is_array($doc) && count($doc) > 0) {
155
				foreach ($doc as $cle => $valeur) {
154
			foreach ($doc as $cle => $valeur) {
156
					$doc[$cle] = $this->supprimerSlash($valeur);
-
 
157
				}
155
				$doc[$cle] = $this->supprimerSlash($valeur);
158
			}
156
			}
159
		}
157
		}
160
		return $doc;
158
		return $doc;