some fixes for the real version

This commit is contained in:
Quitta 2013-09-05 04:29:47 +02:00
parent 8f2dd7f2fd
commit dd14548048
4 changed files with 5 additions and 6 deletions

View file

@ -81,7 +81,7 @@ class Helpers{
if ( !file_exists( $value ) ){
//echo $value;
print($value);
drupal_mkdir($value);
mkdir($value);
}
}

View file

@ -13,11 +13,11 @@ class Mail_Handler{
public static function send_ticketing_mail($receiver, $ticketObj, $content, $type, $sender = 0) {
global $MAIL_LOG_PATH;
error_log("Receiver: {$receiver}, content: {$content}, type: {$type}, SendingId: {$sender} \n", 3, $MAIL_LOG_PATH);
global $TICKET_MAILING_SUPPORT;
if($TICKET_MAILING_SUPPORT){
global $MAIL_LOG_PATH;
error_log("Receiver: {$receiver}, content: {$content}, type: {$type}, SendingId: {$sender} \n", 3, $MAIL_LOG_PATH);
if($sender == 0){
//if it is not forwarded (==public == which returns 0) then make it NULL which is needed to be placed in the DB.
$sender = NULL;

View file

@ -87,7 +87,7 @@ class Ticket{
//create the new ticket!
$ticket = new Ticket();
$values = array("Title" => $title, "Status"=> 1, "Queue"=> 0, "Ticket_Category" => $category, "Author" => $author, "Priority" => 0);
$values = array("Title" => $title, "Timestamp"=>0, "Status"=> 1, "Queue"=> 0, "Ticket_Category" => $category, "Author" => $author, "Priority" => 0);
$ticket->set($values);
$ticket->create();
$ticket_id = $ticket->getTId();

View file

@ -42,7 +42,6 @@ class Ticket_Log{
$instanceLog->setAuthor($instanceAuthor);
$instanceLog->setTicket($ticket_id);
$instanceLog->setQuery($log['Query']);
$result[] = $instanceLog;
}
return $result;