File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed 
src/DebugBar/Resources/widgets/sqlqueries Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4040                if  ( stmt . memory_str )  { 
4141                    $ ( '<span title="Memory usage" />' ) . addClass ( csscls ( 'memory' ) ) . text ( stmt . memory_str ) . appendTo ( li ) ; 
4242                } 
43-                 if  ( typeof ( stmt . is_success )  !=  'undefined'  &&  ! stmt . is_success )  { 
44-                     li . addClass ( csscls ( 'error' ) ) ; 
45-                     li . append ( $ ( '<span />' ) . addClass ( csscls ( 'error' ) ) . text ( "["  +  stmt . error_code  +  "] "  +  stmt . error_message ) ) ; 
46-                 }  else  if  ( typeof ( stmt . row_count )  !=  'undefined' )  { 
43+                 if  ( typeof ( stmt . row_count )  !=  'undefined' )  { 
4744                    $ ( '<span title="Row count" />' ) . addClass ( csscls ( 'row-count' ) ) . text ( stmt . row_count ) . appendTo ( li ) ; 
4845                } 
4946                if  ( typeof ( stmt . stmt_id )  !=  'undefined'  &&  stmt . stmt_id )  { 
6663                        } 
6764                    } 
6865                } 
66+                 if  ( typeof ( stmt . is_success )  !=  'undefined'  &&  ! stmt . is_success )  { 
67+                     li . addClass ( csscls ( 'error' ) ) ; 
68+                     li . append ( $ ( '<span />' ) . addClass ( csscls ( 'error' ) ) . text ( "["  +  stmt . error_code  +  "] "  +  stmt . error_message ) ) ; 
69+                 } 
6970                if  ( stmt . params  &&  ! $ . isEmptyObject ( stmt . params ) )  { 
7071                    var  table  =  $ ( '<table><tr><th colspan="2">Params</th></tr></table>' ) . addClass ( csscls ( 'params' ) ) . appendTo ( li ) ; 
7172                    for  ( var  key  in  stmt . params )  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments