Esempio n. 1
0
 /**
  * Get Midgard error code
  *
  * @return int Midgard error code
  */
 static function get_error()
 {
     if (method_exists('midgard_connection', 'get_instance')) {
         // Midgard 9.09 or newer
         return midgard_connection::get_instance()->get_error();
     }
     // Midgard 8.09 or 9.03
     return midgard_connection::get_error();
 }