Code Duplication    Length = 4-4 lines in 2 locations

admin_pages/venues/Venues_Admin_Page.core.php 1 location

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

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 843-846 (lines=4) @@
840
841
		$att_success = TRUE;
842
843
		foreach ( $event_update_callbacks as $e_callback ) {
844
			$_succ = call_user_func_array( $e_callback, array( $event,  $this->_req_data ) );
845
			$att_success = !$att_success ? $att_success : $_succ; //if ANY of these updates fail then we want the appropriate global error message
846
		}
847
848
		//any errors?
849
		if ( $success && FALSE === $att_success ) {