Added logging to Credential Type editing. See PHPCRED-34
Added logging to Credential Type editing. See PHPCRED-34

--- a/lib/db/Credentials.php
+++ b/lib/db/Credentials.php
@@ -154,15 +154,20 @@
 */
 function editCredType($id,$name){
 $crypt = new Crypto;
-$id = $this->stringEscape($id);
+$sqid = $this->stringEscape($id);
 
 $name = $crypt->encrypt($name,'CredType');
 $name = $this->stringEscape($name);
 
-$sql = "UPDATE #__CredTypes SET `Name`='$name' WHERE id='$id'";
-$this->setQuery($sql);
-
-return $this->runQuery();
+$sql = "UPDATE #__CredTypes SET `Name`='$name' WHERE id='$sqid'";
+$this->setQuery($sql);
+
+$stat = $this->runQuery();
+
+$log = new Logging;
+$log->logEntry($id,17);
+
+return $stat;
 
 }
 
@@ -355,3 +360,4 @@
 
 
 ?>
+