aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-28 21:56:01 -0700
committerfriendica <info@friendica.com>2013-08-28 21:56:01 -0700
commitb4bd518e4032661cdfba4e17acdb94e19b23fdd2 (patch)
treee6bf0cdfd844bcddb43f1579c42767abe9d5a7c8 /include
parent7b27add5468ae38534b8bceb458520e6c603da75 (diff)
downloadvolse-hubzilla-b4bd518e4032661cdfba4e17acdb94e19b23fdd2.tar.gz
volse-hubzilla-b4bd518e4032661cdfba4e17acdb94e19b23fdd2.tar.bz2
volse-hubzilla-b4bd518e4032661cdfba4e17acdb94e19b23fdd2.zip
silence some warnings at php E_ALL levels
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php2
-rwxr-xr-xinclude/friendica_smarty.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 8648209e9..82010b153 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -394,7 +394,9 @@ function visible_activity($item) {
function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
$tstart = dba_timer();
+ $t0 = $t1 = $t2 = $t3 = $t4 = $t5 = $t6 = null;
$content_html = '';
+ $o = '';
require_once('bbcode.php');
diff --git a/include/friendica_smarty.php b/include/friendica_smarty.php
index 1e8ef5406..12a789c9a 100755
--- a/include/friendica_smarty.php
+++ b/include/friendica_smarty.php
@@ -49,7 +49,7 @@ class FriendicaSmartyEngine implements ITemplateEngine {
public function __construct(){
$a = get_app();
- $basecompiledir = $a->config['system']['smarty3_folder'];
+ $basecompiledir = ((array_key_exists('smarty3_folder',$a->config['system'])) ? $a->config['system']['smarty3_folder'] : '');
if (!$basecompiledir) $basecompiledir = dirname(__dir__)."/view/tpl/smarty3";
if (!is_dir($basecompiledir)) {
echo "<b>ERROR:</b> folder <tt>$basecompiledir</tt> does not exist."; killme();