예제 #1
0
 public static function NormalizeProductName($productID, $productName)
 {
     $result = $productName;
     if ($productID > 0 && empty($productName)) {
         $result = CCrmProduct::GetProductName($productID);
         if (empty($result)) {
             $result = '[' . $productID . ']';
         }
     }
     return $result;
 }