Code Duplication    Length = 4-4 lines in 2 locations

admin_pages/venues/Venues_Admin_Page.core.php 1 location

@@ 825-828 (lines=4) @@
822
823
		$att_success = TRUE;
824
825
		foreach ( $venue_update_callbacks as $v_callback ) {
826
			$_succ = call_user_func_array( $v_callback, array( $venue,  $this->_req_data ) );
827
			$att_success = !$att_success ? $att_success : $_succ; //if ANY of these updates fail then we want the appropriate global error message
828
		}
829
830
		//any errors?
831
		if ( $success && !$att_success ) {

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 851-854 (lines=4) @@
848
849
		$att_success = TRUE;
850
851
		foreach ( $event_update_callbacks as $e_callback ) {
852
			$_succ = call_user_func_array( $e_callback, array( $event,  $this->_req_data ) );
853
			$att_success = !$att_success ? $att_success : $_succ; //if ANY of these updates fail then we want the appropriate global error message
854
		}
855
856
		//any errors?
857
		if ( $success && FALSE === $att_success ) {