core/db_classes/EE_Question_Form_Input.class.php 1 location
|
@@ 86-89 (lines=4) @@
|
83 |
|
* @return \EE_Question_Form_Input |
84 |
|
*/ |
85 |
|
public function __construct( EE_Question $QST = NULL, EE_Answer $ANS = NULL, $q_meta = array() ) { |
86 |
|
if ( empty( $QST ) || empty( $ANS ) ) { |
87 |
|
EE_Error::add_error( __( 'An error occurred. A valid EE_Question or EE_Answer object was not received.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__ ); |
88 |
|
return NULL; |
89 |
|
} |
90 |
|
$this->_QST = $QST; |
91 |
|
$this->_ANS = $ANS; |
92 |
|
$this->set_question_form_input_meta( $q_meta ); |
core/EE_Module_Request_Router.core.php 1 location
|
@@ 137-141 (lines=5) @@
|
134 |
|
$module_method = EE_Config::get_route( $current_route, $key ); |
135 |
|
//EEH_Debug_Tools::printr( $module_method, '$module_method <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span>', 'auto' ); |
136 |
|
// verify result was returned |
137 |
|
if ( empty( $module_method )) { |
138 |
|
$msg = sprintf( __( 'The requested route %s could not be mapped to any registered modules.', 'event_espresso' ), $current_route ); |
139 |
|
EE_Error::add_error( $msg, __FILE__, __FUNCTION__, __LINE__ ); |
140 |
|
return FALSE; |
141 |
|
} |
142 |
|
// verify that result is an array |
143 |
|
if ( ! is_array( $module_method )) { |
144 |
|
$msg = sprintf( __( 'The %s route has not been properly registered.', 'event_espresso' ), $current_route ); |
admin_pages/venues/Venues_Admin_Page.core.php 1 location
|
@@ 1368-1372 (lines=5) @@
|
1365 |
|
$category_desc= isset( $this->_req_data['category_desc'] ) ? $this->_req_data['category_desc'] : ''; |
1366 |
|
$category_parent = isset( $this->_req_data['category_parent'] ) ? $this->_req_data['category_parent'] : 0; |
1367 |
|
|
1368 |
|
if ( empty( $category_name ) ) { |
1369 |
|
$msg = __( 'You must add a name for the category.', 'event_espresso' ); |
1370 |
|
EE_Error::add_error( $msg, __FILE__, __FUNCTION__, __LINE__ ); |
1371 |
|
return false; |
1372 |
|
} |
1373 |
|
|
1374 |
|
|
1375 |
|
$term_args=array( |
core/EE_Session.core.php 1 location
|
@@ 441-444 (lines=4) @@
|
438 |
|
public function set_session_data( $data ) { |
439 |
|
|
440 |
|
// nothing ??? bad data ??? go home! |
441 |
|
if ( empty( $data ) || ! is_array( $data )) { |
442 |
|
EE_Error::add_error( __( 'No session data or invalid session data was provided.', 'event_espresso' ), __FILE__, __FUNCTION__, __LINE__ ); |
443 |
|
return FALSE; |
444 |
|
} |
445 |
|
|
446 |
|
foreach ( $data as $key =>$value ) { |
447 |
|
if ( isset( $this->_default_session_vars[ $key ] )) { |
core/libraries/messages/EE_Message_Resource_Manager.lib.php 1 location
|
@@ 639-648 (lines=10) @@
|
636 |
|
$this->ensure_messenger_is_active($messenger_name, $update_option); |
637 |
|
} |
638 |
|
|
639 |
|
if (! empty($not_installed_messenger)) { |
640 |
|
EE_Error::add_error( |
641 |
|
sprintf( |
642 |
|
__('The following messengers are either not installed or are invalid:%1$s %2$s', 'event_espresso'), |
643 |
|
'<br />', |
644 |
|
implode(', ', $not_installed_messenger) |
645 |
|
), |
646 |
|
__FILE__, __FUNCTION__, __LINE__ |
647 |
|
); |
648 |
|
} |
649 |
|
} |
650 |
|
|
651 |
|
|