diff --git a/tutorials/KTAPI/KTAPI.pkg b/tutorials/KTAPI/KTAPI.pkg index 630a121..292d122 100644 --- a/tutorials/KTAPI/KTAPI.pkg +++ b/tutorials/KTAPI/KTAPI.pkg @@ -27,22 +27,22 @@ This is KTAPI example one. Example 1 -32 -33 -34 public function KTAPI_Error($msg, $obj = null) -35 { -36 if (PEAR::isError($obj)) -37 { -38 parent::PEAR_Error($msg . ' - ' . $obj->getMessage()); -39 } -40 else -41 { -42 parent::PEAR_Error($msg); -43 } -44 } -45 -46 -47 + + + public function KTAPI_Error($msg, $obj = null) + { + if (PEAR::isError($obj)) + { + parent::PEAR_Error($msg . ' - ' . $obj->getMessage()); + } + else + { + parent::PEAR_Error($msg); + } + } + + +