fixed error detection
This commit is contained in:
		
							parent
							
								
									7ac8a2f7c2
								
							
						
					
					
						commit
						184b3e8848
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -77,7 +77,7 @@ function mousemove($main, $control, $options) : bool
 | 
			
		|||
{
 | 
			
		||||
    $element = $control->selectCSS($main->vars($options['parameter']));
 | 
			
		||||
    $mouseOffset = $main->getMouseOffset();
 | 
			
		||||
    if ($element === []) {
 | 
			
		||||
    if ($element === [] || array_key_exists('error', $element)) {
 | 
			
		||||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
    $element = array_values($element)[0];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue