I have been tasked to complete a project that three former students of my school have been working on, and have no way of contacting the first two working on it, and since it's up and running right now I have no way of testing the system against anything else than reality which somtimes might not be the best test server. Right now I have an error in the error report script that the first two wrote, it is a Notice: Undefined index on line 73-75 the lines looks as follows:

```
$text .= $t['file'] . "\n";
$text .= $t['line'] . "\n";
$text .= print_r($t['file'], 1) . "\n";

```

Line 72 looks like this:

```
$text .= ((isset($t['type']) && isset($t['object'])) ? print_r($t['object'], true) . $t['type'] . $t['function'] : $t['function']) . "\n";

```

So what I wonder is if it the problem would be fixed if added an if statement on line 72 like this:

```
$text .= if((isset($t['type']) && isset($t['object'])) ? print_r($t['object'], true) . $t['type'] . $t['function'] : $t['function']) . "\n";

```