mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	propperly eval return of hook addDocumentContentFile
This commit is contained in:
		
							parent
							
								
									2558450993
								
							
						
					
					
						commit
						a46549a7b2
					
				|  | @ -398,11 +398,12 @@ console.log(params); | |||
| 			); | ||||
| 		} | ||||
| 		if($arr = $this->callHook('addDocumentContentFile')) { | ||||
| 			if(is_array($arr)) { | ||||
| 				$this->formField($arr[0], $arr[1], isset($arr[2]) ? $arr[2] : null); | ||||
| 			} elseif(is_string($arr)) { | ||||
| 				echo $arr; | ||||
| 			} | ||||
| 			foreach($arr as $ar) | ||||
| 				if(is_array($ar)) { | ||||
| 					$this->formField($ar[0], $ar[1], isset($ar[2]) ? $ar[2] : null); | ||||
| 				} elseif(is_string($ar)) { | ||||
| 					echo $ar; | ||||
| 				} | ||||
| 		} | ||||
| 		if(!$nodocumentformfields || !in_array('version_comment', $nodocumentformfields)) { | ||||
| 		$this->formField( | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann