This repository was archived by the owner on Nov 3, 2023. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed 
system/modules/core/controllers Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -81,12 +81,15 @@ public function run()
8181		$ objDcafield  = $ strField
8282
8383		// Set the active record 
84- 		$ strModelgetClassFromTable ($ strTable
85- 		$ objModel$ strModelfindByPk (\Input::get ('id ' ));
86- 
87- 		if  ($ objModelnull )
84+ 		if  (\Database::getInstance ()->tableExists ($ strTable
8885		{
89- 			$ objDcaactiveRecord  = $ objModel
86+ 			$ strModelgetClassFromTable ($ strTable
87+ 			$ objModel$ strModelfindByPk (\Input::get ('id ' ));
88+ 
89+ 			if  ($ objModelnull )
90+ 			{
91+ 				$ objDcaactiveRecord  = $ objModel
92+ 			}
9093		}
9194
9295		// AJAX request 
Original file line number Diff line number Diff line change @@ -81,12 +81,15 @@ public function run()
8181		$ objDcafield  = $ strField
8282
8383		// Set the active record 
84- 		$ strModelgetClassFromTable ($ strTable
85- 		$ objModel$ strModelfindByPk (\Input::get ('id ' ));
86- 
87- 		if  ($ objModelnull )
84+ 		if  (\Database::getInstance ()->tableExists ($ strTable
8885		{
89- 			$ objDcaactiveRecord  = $ objModel
86+ 			$ strModelgetClassFromTable ($ strTable
87+ 			$ objModel$ strModelfindByPk (\Input::get ('id ' ));
88+ 
89+ 			if  ($ objModelnull )
90+ 			{
91+ 				$ objDcaactiveRecord  = $ objModel
92+ 			}
9093		}
9194
9295		// AJAX request 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments