<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[LuxCal Web Calendar — LuxCal 4.7.0 - PHP Notices when running lcalcron.php via a cron job]]></title>
		<link>https://www.luxsoft.eu/lcforum/viewtopic.php?id=42</link>
		<atom:link href="https://www.luxsoft.eu/lcforum/extern.php?action=feed&amp;tid=42&amp;type=rss" rel="self" type="application/rss+xml"></atom:link>
		<description><![CDATA[The most recent posts in LuxCal 4.7.0 - PHP Notices when running lcalcron.php via a cron job.]]></description>
		<lastBuildDate>Sun, 08 Jul 2018 13:57:04 +0000</lastBuildDate>
		<generator>PunBB 1.4.4</generator>
		<item>
			<title><![CDATA[LuxCal 4.7.0 - PHP Notices when running lcalcron.php via a cron job]]></title>
			<link>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=142#p142</link>
			<description><![CDATA[<p>When running the file lcalcron.php via a cronjob, a PHP notice message may occur, saying &quot;PHP Notice:&nbsp; Undefined index: xda in /home/eakpvwdu/public_html/kal.irweb/cronjobs/notify.php on line 39&quot;.<br>This PHP Notice issue was already reported &quot;solved&quot; in the latest calendar version 4.7.0, but for mysterious reasons the solution was not included in the V4.7.0 zip-file.<br>This PHP Notice has no detrimental effects on the functioning of the email reminder function, but if you want to solve the issue, then you can download the changed file <a href="http://www.luxsoft.eu/fixes/luxcal470-F2.zip" target="_blank"><strong>here</strong></a>.</p><p>You can also fix this problem by applying the following changes:<br>Edit the file cronjobs/notify.php and replace lines 37 - 39 . . .<br></p><div class="codebox"><pre><code>if ($evt[&#039;mde&#039;] &lt;= 1 and //first day
  ($daysDue == $evt[&#039;nom&#039;] or $date == $todayD00) and //email due
  !($evt[&#039;r_t&#039;] and strpos($evt[&#039;xda&#039;],$date))) { //date not excluded if repeating event</code></pre></div><p>by . . .<br></p><div class="codebox"><pre><code>if ($evt[&#039;mde&#039;] &lt;= 1 and //single day event or first day of multi-day event
  ($daysDue == $evt[&#039;nom&#039;] or $date == $todayD00)) { //email due</code></pre></div><p>and replace lines 93 - 95 . . .<br></p><div class="codebox"><pre><code>if ($evt[&#039;mde&#039;] &lt;= 1 and //first day
  ($daysDue == $evt[&#039;nos&#039;] or $date == $todayD00) and //SMS due
  !($evt[&#039;r_t&#039;] and strpos($evt[&#039;xDates&#039;],$date))) { //date not excluded if repeating event</code></pre></div><p>by . . .<br></p><div class="codebox"><pre><code>if ($evt[&#039;mde&#039;] &lt;= 1 and //single day event or first day of multi-day event
  ($daysDue == $evt[&#039;nos&#039;] or $date == $todayD00)) { //SMS due</code></pre></div><p><strong>Use cut and paste!</strong></p><p>Roel</p>]]></description>
			<author><![CDATA[null@example.com (Roel)]]></author>
			<pubDate>Sun, 08 Jul 2018 13:57:04 +0000</pubDate>
			<guid>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=142#p142</guid>
		</item>
	</channel>
</rss>
