<?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 — PHP notices when adding an event an running PHP version > 7.3]]></title>
		<link>https://www.luxsoft.eu/lcforum/viewtopic.php?id=285</link>
		<atom:link href="https://www.luxsoft.eu/lcforum/extern.php?action=feed&amp;tid=285&amp;type=rss" rel="self" type="application/rss+xml"></atom:link>
		<description><![CDATA[The most recent posts in PHP notices when adding an event an running PHP version > 7.3.]]></description>
		<lastBuildDate>Tue, 11 Feb 2020 09:38:54 +0000</lastBuildDate>
		<generator>PunBB 1.4.4</generator>
		<item>
			<title><![CDATA[PHP notices when adding an event an running PHP version > 7.3]]></title>
			<link>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=992#p992</link>
			<description><![CDATA[<p>When running a PHP version &gt; 7.3 on your server, you may get several of the following PHP notices when adding a new event:</p><p>&quot;<em>Notice: Trying to access array offset on value of type bool in /home/caregive/public_html/luxcal/pages/event.php on line 213</em>&quot;</p><p>This problem only happens when running a PHP version &gt; 7.3 on your server and can be solved as follows:</p><p>Edit the pages/event.php file and chang line 182 from . . .<br></p><div class="codebox"><pre><code>$cid = isset($_POST[&#039;cid&#039;]) ? $_POST[&#039;cid&#039;] : ($eCats[0] == &#039;0&#039; ? 0 : intval($eCats[0]));</code></pre></div><p>to . . .<br></p><div class="codebox"><pre><code>$cid = isset($_POST[&#039;cid&#039;]) ? $_POST[&#039;cid&#039;] : ($eCats[0] == &#039;0&#039; ? 1 : intval($eCats[0]));</code></pre></div><p>(only the 0 before &quot;: intval&quot; changed to 1)</p><p>Roel</p>]]></description>
			<author><![CDATA[null@example.com (Roel)]]></author>
			<pubDate>Tue, 11 Feb 2020 09:38:54 +0000</pubDate>
			<guid>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=992#p992</guid>
		</item>
	</channel>
</rss>
