mirror of
				https://github.com/getgrav/grav-plugin-admin.git
				synced 2025-10-31 02:16:26 +01:00 
			
		
		
		
	Fixed saving configuration in PHP 7.4
This commit is contained in:
		| @@ -1,3 +1,9 @@ | ||||
| # v1.9.12 | ||||
| ## mm/dd/2019 | ||||
|  | ||||
| 1. [](#bugfix) | ||||
|     * Fixed saving configuration in PHP 7.4 | ||||
|  | ||||
| # v1.9.11 | ||||
| ## 11/06/2019 | ||||
|  | ||||
|   | ||||
| @@ -737,8 +737,8 @@ class AdminBaseController | ||||
|         // Process previously uploaded files for the current URI | ||||
|         // and finally store them. Everything else will get discarded | ||||
|         $queue = $this->admin->session()->getFlashObject('files-upload'); | ||||
|         $queue = $queue[base64_encode($this->grav['uri']->url())]; | ||||
|         if (is_array($queue)) { | ||||
|             $queue = $queue[base64_encode($this->grav['uri']->url())]; | ||||
|             foreach ($queue as $key => $files) { | ||||
|                 foreach ($files as $destination => $file) { | ||||
|                     if (!rename($file['tmp_name'], $destination)) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user