diff --git a/lam/templates/masscreate.php b/lam/templates/masscreate.php
index 4e600dd4..98a5eafe 100644
--- a/lam/templates/masscreate.php
+++ b/lam/templates/masscreate.php
@@ -222,7 +222,6 @@ function showMainPage($scope) {
echo "
\n";
// print table example and build sample CSV
- $sampleCSV = "";
$sampleCSV_head = array();
$sampleCSV_row = array();
echo "" . _("This is an example how it would look in your spreadsheet program before you convert to CSV:") . "
\n";
diff --git a/lam/templates/tests/lamdaemonTest.php b/lam/templates/tests/lamdaemonTest.php
index c56e14df..dc1b86b2 100644
--- a/lam/templates/tests/lamdaemonTest.php
+++ b/lam/templates/tests/lamdaemonTest.php
@@ -71,7 +71,6 @@ function lamTestLamdaemon($command, $stopTest, $handle, $testText) {
echo "\n" . $testText . " | \n";
flush();
$lamdaemonOk = false;
- $errorMessage = "";
$shell = ssh2_exec($handle, "sudo " . $_SESSION['config']->get_scriptPath());
$stderr = ssh2_fetch_stream($shell, SSH2_STREAM_STDERR);
fwrite($shell, $command);