Fix array_merge() in admin customer

If you get erro message in admin customer such as "Warning: array_merge(): Argument #1 is not an array".
Is the user create an account but not have full information.

How to Fix:
open the admin/customers.php
search code "array_merge(" add compulsive type of variables to the function.
such as:
$customer_info = array_merge($country, $info, $reviews);   
$cInfo_array = array_merge($customers, $customer_info);
Change to:
"$customer_info = array_merge((array)$country, (array)$info, (array)$reviews);" 
"$cInfo_array = array_merge((array)$customers, (array)$customer_info);" 

Fix Register with mobile no address user

If register with mobile but have not set any address book. when checkout with full site will no address in the order.

How to Fix:
1. open checkout_shipping.php
Add follow code
//address check
 function check_address($address_id){
		global $customer_id;
		$addresses_query = tep_db_query("select entry_street_address from address_book where address_book_id = '".(int)$address_id."' and customers_id = '" . (int)$customer_id . "'");
		$addresses = tep_db_fetch_array($addresses_query);
		if (strlen($addresses['entry_street_address']) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {
		 return false;
		}
		else{
		 return true;
		}
	}

 if (!check_address($customer_default_address_id)) {
    $navigation->set_snapshot();
    tep_redirect(tep_href_link(FILENAME_ADDRESS_BOOK_PROCESS, 'edit=' . (int)$customer_default_address_id, 'SSL'));
  }
before
  require(DIR_WS_CLASSES . 'order.php');
  $order = new order;

Auto decide Mobile Devices.

if you want to auto decide mobile devices on your full site.
Follow Code willbe help you.

1. add follow function in includes/general.php
function is_mobile(){
  // returns true if one of the specified mobile browsers is detected
  $regex_match="/(nokia|iphone|android|motorola|^mot\-|softbank|foma|docomo|kddi|up\.browser|up\.link|";
  $regex_match.="htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|CoolPad|webos|techfaith|palmsource|";
  $regex_match.="blackberry|alcatel|amoi|ktouch|nexian|samsung|^sam\-|s[cg]h|^lge|ericsson|philips|sagem|wellcom|bunjalloo|maui|";	
  $regex_match.="symbian|smartphone|midp|wap|phone|windows ce|iemobile|^spice|^bird|^zte\-|longcos|pantech|gionee|^sie\-|portalmmm|";
  $regex_match.="jig\s browser|hiptop|^ucweb|^benq|haier|^lct|opera\s*mobi|opera\*mini|320x320|240x320|176x220";
  $regex_match.=")/i";		
  return isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE']) or preg_match($regex_match, strtolower($_SERVER['HTTP_USER_AGENT']));
}
2. Add follow code in includes/application_top.php under sesson start.
if (!tep_session_is_registered('is_mobile')) {
    tep_session_register('is_mobile');
    $is_mobile = is_mobile();  //if is mobile pre redirect to mobile
  }

if(isset($_GET['full'])){ //if manual check to full site 
   $is_mobile = false;
  }

if($is_mobile&&(!defined('MOBILE_DIR'))){
			if(file_exists('mobile/'.basename($_SERVER["SCRIPT_NAME"]))){
				if($request_type=='SSL'){
		   $mobile_url = str_replace(HTTPS_SERVER.DIR_WS_HTTP_CATALOG, HTTPS_SERVER.DIR_WS_HTTP_CATALOG.'mobile/', tep_href_link(basename($_SERVER["SCRIPT_NAME"]),$_SERVER["QUERY_STRING"]));
				}
				else{
		   $mobile_url = str_replace(HTTP_SERVER.DIR_WS_HTTP_CATALOG, HTTP_SERVER.DIR_WS_HTTP_CATALOG.'mobile/', tep_href_link(basename($_SERVER["SCRIPT_NAME"]),$_SERVER["QUERY_STRING"]));
				}
    header('Location: ' . $mobile_url);
			}
}