Code Duplication    Length = 7-7 lines in 2 locations

catalog/includes/functions/general.php 2 locations

@@ 1202-1208 (lines=7) @@
1199
    $OSCOM_Db = Registry::get('Db');
1200
    $OSCOM_Language = Registry::get('Language');
1201
1202
    if (is_numeric($id) == false) {
1203
      if (isset($_SESSION['customer_id'])) {
1204
        $id = $_SESSION['customer_id'];
1205
      } else {
1206
        return 0;
1207
      }
1208
    }
1209
1210
    if ($check_session == true) {
1211
      if (!isset($_SESSION['customer_id']) || ($id != $_SESSION['customer_id'])) {
@@ 1231-1237 (lines=7) @@
1228
  function tep_count_customer_address_book_entries($id = '', $check_session = true) {
1229
    $OSCOM_Db = Registry::get('Db');
1230
1231
    if (is_numeric($id) == false) {
1232
      if (isset($_SESSION['customer_id'])) {
1233
        $id = $_SESSION['customer_id'];
1234
      } else {
1235
        return 0;
1236
      }
1237
    }
1238
1239
    if ($check_session == true) {
1240
      if (!isset($_SESSION['customer_id']) || ($id != $_SESSION['customer_id'])) {